package com.nwcl.ysx.service;

import com.nwcl.ysx.bo.RestaurantRoomSubscribeBO;

import java.util.List;

/**
 * @author liguiqin
 * @date 2023/5/26
 */
public interface RestaurantRoomSubscribeService {
    /*
     * @Description:查询餐厅包房预约信息时间段是否重叠记录
     * @Author liguiqin
     * @Date 2023/5/26 10:51
     * @param: restaurantId 餐厅id
     * @param: roomId   包房id
     * @param: startTime    开始时间
     * @param: endTime  结束时间
     * @return java.util.List<com.nwcl.ysx.bo.RestaurantRoomSubscribeBO>
     * @UpdateDate 2023/5/26 10:51
     **/
    List<RestaurantRoomSubscribeBO> listTimeRangeOverlapping(Integer restaurantId, Integer roomId, String startTime, String endTime);

    /*
     * @Description:保存餐厅包房预约信息
     * @Author liguiqin
     * @Date 2023/5/26 13:58
     * @param: roomSubscribeBO
     * @return void
     * @UpdateDate 2023/5/26 13:58
     **/
    void save(RestaurantRoomSubscribeBO roomSubscribeBO);

    /*
     * @Description: 根据预约id查询包房预约信息
     * @Author liguiqin
     * @Date 2023/5/30 15:02
     * @param: subscribeId
     * @return com.nwcl.ysx.bo.RestaurantRoomSubscribeBO
     * @UpdateDate 2023/5/30 15:02
     **/
    RestaurantRoomSubscribeBO getBySubscribeId(Integer subscribeId);
}
